package cn.itsource.org.mapper;

import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

//数据层：加载，保存，移除，更新
public interface DepartmentMapper {
    void save(Department department);
    void remove(Long id);
    void update(Department department);
    Department loadById(Long id);
    List<Department> loadAll();

    //查询总数=参数（查询对象），返回值：long
    long queryCount(DepartmentQuery departmentQuery);
    //查询当前页数据=参数（查询对象），返回值:List
    List<Department> queryData(DepartmentQuery departmentQuery);
}
